package com.ican.action.user;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;


import com.ican.common.PropertyVo;
import com.ican.util.ContextUtils;
import com.ican.util.NcSysConfigUtil;
import com.opensymphony.xwork2.ActionSupport;

@Action("ncsysconfig")
public class NcSysConfigAction extends ActionSupport {
    private static final long serialVersionUID = 1L;
    
    private List<PropertyVo> pvs;
    private String ajaxPara;
    
    public String toEditProperty(){
        pvs = NcSysConfigUtil.getAllProperties();
        return "edit";
    }
    
    public void modifyProperty(){
        if(ajaxPara == null || ajaxPara.length() < 1){
            ContextUtils.write2Response("参数为空！");
            return;
        }
        ContextUtils.write2Response("参数为空！");
    }

    public List<PropertyVo> getPvs() {
        return pvs;
    }

    public void setPvs(List<PropertyVo> pvs) {
        this.pvs = pvs;
    }

    public String getAjaxPara() {
        return ajaxPara;
    }

    public void setAjaxPara(String ajaxPara) {
        this.ajaxPara = ajaxPara;
    }

}
